import request from "@/framework/axios";

/**
 * 获取菜单编码
 * @returns
 */
export function getAuthMenus() {
  return request.get("/Account/GetAuthMenus");
}
/**
 * 获取权限编码
 * @returns
 */
export function getAuthCodes() {
  return request.get("/Account/GetAuthCodes");
}
/**
 * 获取系统设置
 * @returns
 */
export function getSystemSettings() {
  return request.get("/Account/GetSystemSettings");
}
interface SetPasswordDto {
  oldPassword: string;
  newPassword: string;
  confirmPassword: string;
}
/**
 * 修改密码
 * @param data
 * @returns
 */
export function updatePassword(data: SetPasswordDto) {
  return request.put("/Account/UpdatePassword", data);
}
